let myHandler = async function (event, context, callback, logger) {
  logger.info(event);
  let evn1 = context.env.env1;
  // do something here
  logger.info("------------start------------");
  try {
    let startTime = new Date().getTime();
    let endTime = startTime;
    let interval = 0;
    startTime = process.uptime()*1000;
    logger.info("request :"+JSON.stringify(event.request));
    logger.info("evn1:"+evn1);
    endTime = process.uptime()*1000;
    interval = endTime = startTime;
    logger.info("intervalTime:"+interval);
    let resp = new context.HttpResponse(context.env,{
      "res-type":"context.env",
      "faas-content-type":"json",
    },"application/json",'200')
    resp.body = {"intervalTime":interval};
    callback(resp);
  }catch (e) {
    callback(e)
  }
  callback({
    code: 0,
    desc: "Success."
  });
};
module.exports.myHandler = myHandler;

export { myHandler };